<template>
  <div class="home">
    <h4>首页</h4>
    <!-- <home-header></home-header> -->
  </div>
</template>

<script>
// @ is an alias to /src
// import HelloWorld from '@/components/HelloWorld.vue'
// import HomeHeader from '@/components/header.vue'

export default {
  name: 'Home',
  components: {
    // HomeHeader
  },
  mounted () {
    console.log(this.$store.state.userInfo)
    const name = this.$store.state.userInfo.userName
    const id = this.$store.state.userInfo.userId
    this.$notify({
      title: 'vuex',
      message: 'id:' + id + ' ' + 'name: ' + name,
      duration: 2000
    })
  }
}
</script>
